@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>渠道市场管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#InputCon type="text" id="condition" name="关键字" placeholder="渠道名称/描述/搜索链接"/>
                            </div>

                            <div class="col-sm-2">
                                <#InputCon type="select" id="status" name="状态" items="${statuses}"
                                btnClickEnabled="true" multiple="multiple"/>
                            </div>
                            <div class="col-sm-2">
                                <#InputCon type="select" id="level" name="级别" items="${levels}"
                                btnClickEnabled="true" multiple="multiple"/>
                            </div>
                        </div>
                        <div class="hidden-xs" id="ChannelInfoTableToolbar" role="group">
                            <#button name="搜索" icon="fa-search" clickFun="ChannelInfo.search()"/>

                            @if(shiro.hasPermission("/channelInfo/add")){
                            <#button name="添加" icon="fa-plus" clickFun="ChannelInfo.openAddChannelInfo()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/channelInfo/update")){
                            <#button name="修改" icon="fa-plus" clickFun="ChannelInfo.openChannelInfoDetail()"
                            space="true"/>
                            @}
                            @if(shiro.hasPermission("/channelInfo/delete")){
                            <#button name="删除" icon="fa-trash" clickFun="ChannelInfo.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/channelInfo/enable")){
                            <#button name="启用" icon="fa-search" clickFun="ChannelInfo.enable()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/channelInfo/disable")){
                            <#button name="停用" icon="fa-search" clickFun="ChannelInfo.disable()" space="true"/>
                            @}
                            <#button name="导出CSV" icon="fa-search" clickFun="ChannelInfo.exportCSV()" space="true"/>
                        </div>
                        <#table id="ChannelInfoTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/ds/channelInfo/channelInfo.js"></script>
@}
